<?php
echo '	function editor($field, $value) {
		$setting = string2array($this->fields[$field][\'setting\']);
		$enablesaveimage = $setting[\'enablesaveimage\'];
		$site_setting = string2array($this->site_config[\'setting\']);
		$watermark_enable = intval($site_setting[\'watermark_enable\']);
		$value = $this->attachment->download(\'content\', $value,$watermark_enable);
		return $value;
	}

?>